package jam.network.message;

import java.util.*;

//
// =============================================================================
//

public class ServerActionInvite extends ServerCommand {
    protected static final String KEYWORD = "SA_INVITE";
    
    private String username;
    private String channelName;
    
    //
    // =========================================================================
    //
    
    @Override
    public List<String> getArgumentList() {
        LinkedList<String> l = new LinkedList<String>();
        l.add(this.username);
        l.add(this.channelName);
        return l;
    }
    
    @Override
    public String getKeyword() { return ServerActionInvite.KEYWORD; }
    
    //
    // =========================================================================
    //
    
    /**
     * Constructor.
     *
     * @param transactionID
     * @param channelName
     */
    protected ServerActionInvite(int transactionId, String username, String channelName) {      
        super(transactionId);
        
        this.username = username;
        this.channelName = channelName;
    }
}